From: Jasper St. Pierre Date: Sun, 30 Dec 2012 16:29:32 +0000 (-0500) Subject: notificationDaemon: Prevent doing redundant work X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5135 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c11cbff605a909fc81b1e76885dbd3f1d1725a7f;p=gnome-shell.git notificationDaemon: Prevent doing redundant work We already calculated and created a gicon based on the icon and hints. https://bugzilla.gnome.org/show_bug.cgi?id=680414 --- diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index ff6c25f06..6f63b589d 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -435,7 +435,7 @@ const NotificationDaemon = new Lang.Class({ // of the 'transient' hint with hints['transient'] rather than hints.transient notification.setTransient(hints['transient'] == true); - let sourceGIcon = source.useNotificationIcon ? this._iconForNotificationData(icon, hints) : null; + let sourceGIcon = source.useNotificationIcon ? gicon : null; source.processNotification(notification, sourceGIcon); },